package xyz.xtgl.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import plus.handler.PageConverter;
import plus.handler.QueryWrapperConverter;

/**
 * @author liubo
 * @created 2020-01-20 17:22
 */
@Slf4j
@Configuration
public class CommonMvcConfig implements WebMvcConfigurer {

    @Bean
    public PageConverter pageConverter(){
        return new PageConverter();
    }

    @Bean
    public QueryWrapperConverter queryWrapperConverter(){
        return new QueryWrapperConverter();
    }

}
